package com.company;

import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Teacher teacher1 = new Teacher(001,"李老师","男","nothing",0,43);
        Teacher teacher2 =new Teacher(002,"王老师","女","nothing",0,37);
        Student student1 = new Student(2021310000,"小明","男","nothing",0,"大二");
        Student student2 = new Student(2021310001,"小红","女","nothing",0,"大三");
        Course course1= new Course(001,"数学","教100","上午8：00","nothing",0,0);
        Course course2= new Course(002,"英语","教101","下午18：30","nothing",0,0);
        System.out.println("输入字符1开始系统：");
        Scanner input1=new Scanner(System.in);
        int c1=input1.nextInt();
        while(c1==1) {
            System.out.println("按1开始老师开课，按2开始学生选课,按3为学生退课,按4查看课表,按5结束");
            Scanner input2=new Scanner(System.in);
            int c2=input2.nextInt();
            if(c2==1){
                teacher1.tchoice(teacher1,teacher2,course1,course2);
            }
            if(c2==2){
                student1.choice(student1,student2,course1,course2);
            }
            if(c2==3){
                student1.nochoice(student1,student2,course1,course2);
            }
            if(c2==4){
                course1.Timetable(student1,student2,course1,course2);
            }
            if(c2==5){
                break;
            }
        }
    }
}


